package com.by.mapper;

import com.by.bean.Employee;
import com.by.common.crud.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author HY
 * @version 1.0
 * @description
 * @date 2025/2/18
 * @since JDK21
 */
@Mapper
public interface EmployeeMapper extends BaseMapper {
    int save(Object entity);

    int update(Object entity);

    int delete(Serializable id);

    List<Employee> query(@Param("name") String name,@Param("departmentName") String departmentName);

    @MapKey("id")
    List<Map> queryList();
}
